
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/1999/xhtml"); 

scaledimage > box { display: block; }
scaledimage > box > html|img { display: none; }

scaledimage[state=loading].show-throbber > box {
    min-width: 16px;
    min-height: 16px;
    background-image: url("chrome://global/skin/icons/loading_16.png");
    background-position: center center;
    background-repeat: no-repeat;
}

scaledimage[state=error].show-error > box {
    min-width: 16px;
    min-height: 16px;
    background-image: url("resource://gre/res/loading-image.png");  /* -moz-force-broken-image-icon icon */
    background-position: center center;
    background-repeat: no-repeat;
}

scaledimage[state=loaded] > box > html|img { display: block; }
